package com.enzoism.springboot.dive;

import com.enzoism.learn.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class DiveMainApplication {
    @Autowired
    @SuppressWarnings("ALL")
    private PersonService personService;

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(DiveMainApplication.class, args);
        PersonService personService = context.getBean(PersonService.class);
        personService.sayHello();
    }
}
